<template>
  <div id="inland"> 
 <el-form ref="form" :model="form" label-width="80px">  
     <el-row>   

        <el-col :span="12" style="display:flex;">


          <el-form-item label-width="0px" >
            <el-input v-model="form.input1" placeholder="姓名/手机号" class="search"></el-input>
          </el-form-item>

           <div class="custom_button" @click="soure_but"></div>
        </el-col>


         <el-col :span="12" style="text-align: right;">
       
        </el-col>  
       
    </el-row>
   </el-form>

   <!-- 渲染数据list -->
   <inland-list :list="list" > </inland-list>



      
   <div style="margin-top:20px;text-align: center;">
      <el-pagination
        background
        @current-change="handleCurrentChange"
        :page-size="10"  
        layout="prev, pager, next, jumper"
        :total="count">
      </el-pagination>
    </div>



    

      
  </div>
</template>

<script>
import InlandList from '@/view/Landjurisdiction/InlandList'
export default {
  name: 'inland',
  data () {
    return {
        form:{
           input1:'',
        },
        list:[],
        page:1,
        count:0,
    }
  },
 components:{
    InlandList
  },
  created(){
      this.list_fun()
  },
  mounted (){
    
  },
  methods: {
      list_fun(){
          this.post("/member_super/listOfData", {
              page:this.page,
	        }).then(res => {
            this.count = res.result.count
            this.list = res.result.list
            //console.log(res)
         })
      },
     soure_but(){
         this.page = 1
         this.list_fun()
     },
     handleSizeChange(val) {
        console.log(`每页 ${val} 条`);
      },
      handleCurrentChange(val) {
        this.page = val
        this.list_fun()
        console.log(`当前页: ${val}`);
      }
  }
}
</script>


<style scoped>
</style>
